package com.ys.dubbo.spring.cloud.feign.consumer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>@description: </p>
 *
 * @author yangshuang
 * @version 1.0
 * @date 2019/6/16 20:34
 */
@RestController
public class EchoController {

    @Autowired
    private EchoService echoService;

    @GetMapping(value = "call/echo")
    public String echo(@RequestParam("message") String message) {
        return echoService.echo(message);

    }
}
